import { request } from '@umijs/max';

export async function RoleList(data: any) {
  return request('/role/list', {
    method: 'POST',
    data,
  });
}

export async function RoleView(data: any) {
  return request('/role/view', {
    method: 'POST',
    data,
  });
}

export async function RoleCreate(data: any) {
  return request('/role/add', {
    method: 'POST',
    data,
  });
}

export async function RoleUpdate(data: any) {
  return request('/role/update', {
    method: 'POST',
    data,
  });
}

export async function RoleDelete(data: any) {
  return request('/role/del', {
    method: 'POST',
    data,
  });
}
